package net.lzzy.practices.constants;

/****
 * @author zly on 2022/5/12
 * Description:
 */
public enum Messages {
    /**
     * Controller中用到的操作结果信息
     */
    SUCCESS("操作成功"),

    WRONG_PASSWORD("错误的用户名和密码"),

    USER_FORBIDDEN("该用户禁止登录"),

    WRONG_ID("错误的ID"),

    RELATED_DATA("存在关联数据"),

    INCOMPLETE_INFO("信息不完整"),

    NO_PERMISSION("没有操作权限");

    private final String name;

    Messages(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return name;
    }
}
